﻿using StructureMap.Configuration.DSL;
using DAL.Engine.Interface;
using DAL.Mongo.Interface;
using DAL.Mongo.Repository;
using DAL.Mongo.Configuration;

namespace DAL.Mongo
{
    public class MongoRegistry : Registry
    {
        public MongoRegistry()
            : base()
        {
            For<IConfiguration>().Singleton().Use<AppConfiguration>();
            For<IConfigurationManager>().Singleton().Use<MongoConfigurationManager>();
            For<IUserRepository>().Use<UserRepository>();
        }
    }
}
